package com.cjj.configclient.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 梅长苏
 * @version v2
 * 2018/5/20 上午11:04
 */
@RestController
@RequestMapping("test")
public class TestController {

  @Value("${test.username}")
  private String username;

  @GetMapping
  public void test(){
    System.out.println(username);
  }

}
